<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('申请人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/riderList_add" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Apply_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apply_name" data-rule="required;chinese" class="form-control" name="row[apply_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Apply_mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apply_mobile" data-rule="required;mobile" class="form-control" name="row[apply_mobile]" type="text" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Idcard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-IDcard" data-rule="required;IDcard;length(18)" class="form-control" name="row[IDcard]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Prefecture')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-prefecture" data-toggle="city-picker" data-level="city" data-simple="true" placeholder="请选择所在区域" data-rule="required" class="form-control" name="row[prefecture]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rider_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="ridertypelist" item="vo"}
                <label for="row[rider_type]-{$key}"><input id="row[rider_type]-{$key}" name="row[rider_type]" readonly type="radio" value="{$key}"/> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-imagefront" class="control-label col-xs-12 col-sm-2">{:__('Imagefront')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-imagefront" data-rule="" class="form-control" size="50" name="row[imagefront]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-imagefront" class="btn btn-danger faupload" data-input-id="c-imagefront" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-imagefront"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-imagefront" class="btn btn-primary fachoose" data-input-id="c-imagefront" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imagefront"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-imagefront"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-imageback" class="control-label col-xs-12 col-sm-2">{:__('Imageback')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-imageback" data-rule="" class="form-control" size="50" name="row[imageback]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-imageback" class="btn btn-danger faupload" data-input-id="c-imageback" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-imageback"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-imageback" class="btn btn-primary fachoose" data-input-id="c-imageback" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imageback"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-imageback"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mark" class="form-control" name="row[mark]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
